﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;

namespace WebApplication1
{
    public partial class Activation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string email = Request.QueryString["email"];
            UserManagement usermgt = new UserManagement();
            try
            {
                usermgt.ActivateAccount(Common.DecryptQueryString(email));
                lblMessage.Text = "Your account is activated!";
            }
            catch
            {
                lblMessage.Text = "Error! Please contact administrator!";
            }

        }
    }
}